/**
 * This example demonstrates the Toolbar's two different modes of handling overflow:
 *
 * - "menu": buttons that don't fit on the toolbar are rendered into an overflow menu
 * - "scroller": scroller buttons are rendered on either side of the toolbar for scrolling
 * overflowing items into view.
 */
Ext.define('DragonApp.view.ban.Bar', {

    extend: 'Ext.toolbar.Toolbar',
    xtype: 'ban-bar',

    controller: 'ban',

    items: [{
        xtype: 'button',
        text: '封号',
        itemId: 'banAccount',
        tooltip: '封号',
        handler: 'onRequest',
        glyph: 'xf256@FontAwesome',
        width: 100
    }, {
        xtype: 'button',
        text: '禁言',
        itemId: 'banComment',
        tooltip: '禁言',
        handler: 'onRequest',
        glyph: 'xf05e@FontAwesome',
        width: 100
    }, {
        xtype: 'button',
        text: '解除封号',
        itemId: 'unbanAccount',
        tooltip: '解除封号',
        handler: 'onRequest',
        glyph: 'xf25b@FontAwesome',
        width: 100
    }, {
        xtype: 'button',
        text: '解除禁言',
        itemId: 'unbanComment',
        tooltip: '解除禁言',
        handler: 'onRequest',
        glyph: 'xf086@FontAwesome',
        width: 100
    }]
});